//
//  TipView.swift
//  MyCloset
//
//  Created by 牟好好 on 2024/11/9.
//

import SwiftUI

struct TipView: View {
    var text: String
    let textColor = Color(#colorLiteral(red: 0.9624270797, green: 0.3865155578, blue: 0, alpha: 1))
    
    var body: some View {
        VStack(alignment: .leading, spacing: 10) {
            Text("温馨提示")
                .foregroundStyle(textColor)
            Text(text)
                .foregroundStyle(.white)
        }
        .padding()
        .background(Color(#colorLiteral(red: 0.1616530418, green: 0.1566954255, blue: 0.1567847431, alpha: 1)))
        .overlay {
            RoundedRectangle(cornerRadius: 25).stroke(textColor, lineWidth: 4)
        }
        
        .cornerRadius(25)
    }
}

#Preview {
    TipView(text: "温馨提示：模型识别多有不准，如有不准请手动修改")
}
